import request from '@/utils/request'

// 获取光伏报警
export function getPhotovoltaicAlarmSetting (parameter) {
  return request({
    url: '/iot/iotPhotovoltaicAlarmSetting/list',
    method: 'get',
    params: parameter
  })
}
// 添加光伏报警设置
export function createPhotovoltaicAlarmSetting (parameter) {
  return request({
    url: '/iot/iotPhotovoltaicAlarmSetting/create',
    method: 'post',
    data: parameter
  })
}
// 修改设备报警设置
export function updatePhotovoltaicAlarmSetting (parameter) {
  return request({
    url: '/iot/iotPhotovoltaicAlarmSetting/update',
    method: 'post',
    data: parameter
  })
}

// 删除报警设置
export function deletePhotovoltaicAlarmSetting (id) {
  return request({
    url: '/iot/iotPhotovoltaicAlarmSetting/delete/' + id,
    method: 'post',
    data: {

    }
  })
}
// 获取报警设置
export function getAlarmList (parameter) {
  return request({
    url: '/iot/iotAlarmSetting/list',
    method: 'get',
    params: parameter
  })
}
// 根据ID获取报警设置
export function getAlarmById (id) {
  return request({
    url: '/iot/iotAlarmSetting/' + id,
    method: 'get',
    params: parameter
  })
}

// 添加报警设置
export function createAlarm (parameter) {
  return request({
    url: '/iot/iotAlarmSetting/create',
    method: 'post',
    data: parameter
  })
}
// 修改设备报警设置
export function updateAlarm (parameter) {
  return request({
    url: '/iot/iotAlarmSetting/update',
    method: 'post',
    data: parameter
  })
}
// 删除报警设置
export function deleteAlarm (id) {
  return request({
    url: '/iot/iotAlarmSetting/delete/' + id,
    method: 'post',
    data: {

    }
  })
}

// 获取报警记录
export function getRecordList (parameter) {
  return request({
    url: '/iot/iotAlarmRecord/list',
    method: 'get',
    params: parameter
  })
}
// 获取提醒记录
export function getRemindRecordList (parameter) {
  return request({
    url: '/iot/remindRecord/list',
    method: 'get',
    params: parameter
  })
}
//
